From c71c3954f4b343423492ea79bcab513978475e2d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Fri, 17 Mar 2017 18:49:52 +0100 Subject: [PATCH] headerbar: Fix size requisition variable mixup Happened when porting to gtk_widget_measure. --- gtk/gtkheaderbar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c index 3ca1894565..95c59bc2a2 100644 --- a/gtk/gtkheaderbar.c +++ b/gtk/gtkheaderbar.c @@ -856,7 +856,7 @@ gtk_header_bar_compute_size_for_opposing_orientation (GtkWidget *widget, if (priv->titlebar_start_box != NULL) { gtk_widget_measure (priv->titlebar_start_box, GTK_ORIENTATION_VERTICAL, -1, - ¢er_min, ¢er_nat, NULL, NULL); + &child_minimum, &child_natural, NULL, NULL); computed_minimum = MAX (computed_minimum, child_minimum); computed_natural = MAX (computed_natural, child_natural); @@ -865,7 +865,7 @@ gtk_header_bar_compute_size_for_opposing_orientation (GtkWidget *widget, if (priv->titlebar_end_box != NULL) { gtk_widget_measure (priv->titlebar_end_box, GTK_ORIENTATION_VERTICAL, -1, - ¢er_min, ¢er_nat, NULL, NULL); + &child_minimum, &child_natural, NULL, NULL); computed_minimum = MAX (computed_minimum, child_minimum); computed_natural = MAX (computed_natural, child_natural); -- 2.30.2